package com.bdqn.t382.jd;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Player {
    private Equip armet; // 头盔
    private Equip loricae; // 铠甲
    private Equip boot; // 靴子
    private Equip ring; // 指环

    public Player() {
    }

    @Autowired
    public Player(@Qualifier("zhanShenArmet") Equip armet, @Qualifier("zhanShenLoricae") Equip loricae, @Qualifier("zhanShenBoot") Equip boot, @Qualifier("zhanShenRing") Equip ring) {
        this.armet = armet;
        this.loricae = loricae;
        this.boot = boot;
        this.ring = ring;
    }

    public void setArmet(Equip armet) {
        this.armet = armet;
    }

    public void setLoricae(Equip loricae) {
        this.loricae = loricae;
    }

    public void setBoot(Equip boot) {
        this.boot = boot;
    }

    public void setRing(Equip ring) {
        this.ring = ring;
    }
}
